<template>
  <div class="enter-page page">
    <div class="title">
      <span class="text lengku">肃州区数据资源池综合分析系统</span>
    </div>
    <div class="info-block">
      <div class="menu-item" @click="handleRoute(0,'/enter')">
        <div class="menu-title">多维度数据展示</div>
        <div class="menu-text">Multi dimensional data display</div>
      </div>
      <div class="menu-item" @click="handleRoute(1)">
        <div class="menu-title">在线预览</div>
        <div class="menu-text">Online Preview</div>
      </div>
      <div class="menu-item" @click="handleRoute(2)">
        <div class="menu-title">DeepSeek大模型</div>
        <div class="menu-text">DeepSeek Large Model</div>
      </div>
    </div>
    <Dialog v-if="dialogInfo.show" :info="dialogInfo">
      <embed :src="path" type="application/pdf" width="100%" height="750px" />
    </Dialog>
    <Dialog v-if="dialogInfo1.show" :info="dialogInfo1">
      <iframe src="https://udify.app/chat/UlUDrBb0YWXTCELC" style="width: 100%;min-height:750px;" frameborder="0" allow="microphone"> </iframe>
    </Dialog>
  </div>
</template>
<script>
import Dialog from "@/components/dialog/Dialog";

export default {
  components: {Dialog},
  data() {
    return {
      dialogInfo:{
        show:false,
        title:'在线预览',
        width: '1900px',
      },
      dialogInfo1:{
        show:false,
        title:'DeepSeek大模型',
        width: '1900px',
      },
      path:'http://60.165.22.69:3032/industrialEconomicOperation.pdf#page='
    }
  },
  methods: {
    handleRoute(e,url){
      if(url){
        this.$router.push(url);
      }
      if(e===1){
        this.dialogInfo.show=true
      }else if(e===2){
        this.dialogInfo1.show=true
      }
    }
  }
}
</script>
<style lang="scss" scoped>
.enter-page {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  .title {
    position: absolute;
    transform: translate(-50%,0);
    top: 120px;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    width: 1400px;
    .text{
      font-size: 60px;
      font-weight: bold;
      color: #29F1FA;
      text-shadow: #296bfa 0 0 10px;
      font-family: 'lengku';
    }
  }
  .info-block{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 180px;
    .menu-item{
      width: 400px;
      height: 200px;
      background: url("~@/assets/images/theme-blue/home/home_bg.png")no-repeat center;
      background-size: 100% 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      .menu-title{
        color: #8acaf6;
        font-size: 35px;
        font-weight: bold;
        margin-bottom: 8px;
      }
      .menu-text{
        color: #8acaf6;
      }
    }
  }
}
</style>
